package com.jghz.transfer.controller;

import java.util.Collection;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.jghz.transfer.entity.Tbplateformcash;
import com.jghz.transfer.service.CashFlowService;

/**
 * 资金流
 *
 * @author Administrator
 *
 */
@Controller
public class CashFlowController {

	@Autowired
	private CashFlowService cashFlowService;

	@DataProvider
	public void load(Page<Tbplateformcash> page, Map<String, Object> params) throws Exception {
		cashFlowService.load(page, params);
	}

	@DataResolver
	public void save(Collection<Tbplateformcash> cols) {
		cashFlowService.save(cols);
	}

	@Expose
	public void sendMessage(Collection<Tbplateformcash> cols) throws Exception {
		cashFlowService.send(cols);
	}

}
